package com.scsj.supermarket.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.scsj.supermarket.R;
import com.scsj.supermarket.bean.EditCommBean;

import java.util.List;

/**
 * Created by Administrator on 2018/6/9.
 */

public class EditCommAdapter extends BaseQuickAdapter<EditCommBean, BaseViewHolder> {

    public EditCommAdapter(List data) {
        super(R.layout.item_edit_comm_layout, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, EditCommBean item) {
        helper.setImageResource(R.id.editcomm_icon_iv, item.getEditcomm_icon_iv());
        helper.setText(R.id.editcomm_name_tv, item.getEditcomm_name_tv());
        helper.setRating(R.id.editcomm_num_rb, item.getEditcomm_num_rb());

    }
}
